
#import "NoDataView.h"

@implementation NoDataView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self = [[NSBundle mainBundle] loadNibNamed:@"NoDataView" owner:nil options:nil].lastObject;
        self.frame = frame;
    }
    return self;
}


- (void)showNoDataView:(UIViewController *)viewController{
    [viewController.view addSubview:self];
}


- (void)hideNoDataView{
    
    [self removeFromSuperview];
}



@end
